package com.yingxue.lesson.mapper;

import com.yingxue.lesson.entity.SysProduct;
import com.yingxue.lesson.vo.req.product.ProductPageVO;

import java.util.List;

public interface SysProductMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysProduct record);

    int insertSelective(SysProduct record);

    SysProduct selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysProduct record);

    int updateByPrimaryKey(SysProduct record);

    /**
     * 查询产品分页列表
     * @param vo
     * @return
     */
    List<SysProduct> selectAll(ProductPageVO vo);

    /**
     * 删除
     * @param productIds
     * @return
     */
    int batchDeletedLog(List<String> productIds);
}
